package com.v1.video.domain;

import java.io.Serializable;

import com.v1.video.domain.TopicListInfoConfig.TopicInfo;

public class VideoInfo implements Serializable {
	// "videoId": 1,
	// "userId": 1,
	// "channelId": 1,
	// "title": "百 度",
	// "videoUrl": "http://www.baidu.com",
	// "imgUrl": "http: //baiduimg.com",
	// "detail": "百度视频",
	// "scenario": "上班时",
	// "address": "北京 海淀区",
	// "source": "手动上传",
	// "createTime": "2014-03-05 15:57:30.0",
	// "state": 0

	private String videoId;
	private String userId;
	private String channelId;
	private String title;
	private String videoUrl;
	private String imgUrl;
	private String detail;
	private String scenario;
	private String address; // region
	private String source;
	private String createTime;
	public String state; // 1通过审核2未通过审核

	private int praiseNum;
	private boolean isbrowsed;

	private String userImg;
	private String sex;
	private String playNum;
	private String userName;
	private String comments;
	private String forward;

	public String href;
	public String Id;
	public String create_time;
	public String focusOntype;
	public String stype = "";// 0表示新闻的视频1表示拍客的视频
	public String sourceId = "";// 资源id,本地生成，保存在本地，表示未审核的状态，当下发的sourceid与本地保存的一致时，表示审核有了结果，则可以删除本地数据库中的数据；
	// private String id;
	// private String imageUrl;
	// private String title;
	// private String content;
	// private String videoUrl;
	// private boolean isbrowsed;
	public long albumId;
	public String albumName;

	private boolean isTop; // 是否置顶
	private UserInfo userInfo; //用户 
	private String virtualAddress = "";
	
    private String recommendTitle = "";
    private String recommendDetail = "";
    private String recommendImageUrl = "";
    private boolean isHot;

	public VideoInfo() {

	}

	public VideoInfo(String videoId, String userId, String channelId,
			String title, String videoUrl, String imgUrl, String detail,
			String scenario, String address, String source, String createTime,
			String state, int praiseNum, boolean isbrowsed) {
		super();
		this.videoId = videoId;
		this.userId = userId;
		this.channelId = channelId;
		this.title = title;
		this.videoUrl = videoUrl;
		this.imgUrl = imgUrl;
		this.detail = detail;
		this.scenario = scenario;
		this.address = address;
		this.source = source;
		this.createTime = createTime;
		this.state = state;
		this.praiseNum = praiseNum;
		this.isbrowsed = isbrowsed;
	}
	
	public VideoInfo(VideoDetailInfoNew videoInfo){
		this.setVideoId(""+videoInfo.getVideoId());
		if(videoInfo.getAddress() != null)
		this.setAddress(videoInfo.getAddress());
		if(videoInfo.getComments() != null)
		this.setComments(""+videoInfo.getComments());
		
		this.setCreateTime(""+videoInfo.getCreateTime());
		
		if(videoInfo.getDetail() != null)
		this.setDetail(videoInfo.getDetail());
		
		if(videoInfo.getForward() != null)
		this.setForward(""+videoInfo.getForward());
		
		if(videoInfo.getWabSiteUrl() != null)
		this.setHref(videoInfo.getWabSiteUrl());
		
		if(videoInfo.getImgUrl() != null)
		this.setImgUrl(videoInfo.getImgUrl());
		
		if(videoInfo.getPlayNum() != null)
		this.setPlayNum(""+videoInfo.getPlayNum());
		
		if(videoInfo.getPraise() != null)
		this.setPraiseNum(videoInfo.getPraise());
		
		if(videoInfo.getScenario() != null)
		this.setScenario(videoInfo.getScenario());
		
		if(videoInfo.getSource() != null)
		this.setSource(videoInfo.getSource());
		this.setState(""+videoInfo.getState());
		this.setStype(videoInfo.getStype());
		
		if(videoInfo.getTitle() != null)
		this.setTitle(videoInfo.getTitle());
		this.setTop(videoInfo.isTop());

		if(videoInfo.getUserInfo() != null)
		this.setUserInfo(videoInfo.getUserInfo());
		this.setVideoId(""+videoInfo.getVideoId());
		
		if(videoInfo.getVideoUrl() != null)
		this.setVideoUrl(videoInfo.getVideoUrl());
		
		if(videoInfo.getSourceId() != null)
			this.setSourceId(videoInfo.getSourceId());
		
		if(videoInfo.getVirtualAddress() != null && !videoInfo.getVirtualAddress().equals(""))
			this.setVirtualAddress(videoInfo.getVirtualAddress());
		
		if(videoInfo.getRecommendTitle() != null)
			this.setRecommendTitle(videoInfo.getRecommendTitle());
		
		if(videoInfo.getRecommendDetail() != null)
			this.setRecommendDetail(videoInfo.getRecommendDetail());
		
		if(videoInfo.getRecommendImageUrl() != null)
			this.setRecommendImageUrl(videoInfo.getRecommendImageUrl());
	}
	
	public void VideoInfo(TopicInfo videoInfo){
		setVideoId(""+videoInfo.getVideoId());
		setTitle(videoInfo.getTitle());
		setDetail(videoInfo.getDetail());
		setImgUrl(videoInfo.getImgUrl());
		setUserInfo(videoInfo.getUserInfo());
		setRecommendTitle(videoInfo.getRecommendTitle());
		setRecommendDetail(videoInfo.getRecommendDetail());
	}

	public String getVideoId() {
		return videoId;
	}

	public void setVideoId(String videoId) {
		this.videoId = videoId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getChannelId() {
		return channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getVideoUrl() {
		return videoUrl;
	}

	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getScenario() {
		return scenario;
	}

	public void setScenario(String scenario) {
		this.scenario = scenario;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public int getPraiseNum() {
		return praiseNum;
	}

	public void setPraiseNum(int praiseNum) {
		this.praiseNum = praiseNum;
	}

	public boolean isIsbrowsed() {
		return isbrowsed;
	}

	public void setIsbrowsed(boolean isbrowsed) {
		this.isbrowsed = isbrowsed;
	}

	public String getUserImg() {
		return userImg;
	}

	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPlayNum() {
		return playNum;
	}

	public void setPlayNum(String playNum) {
		this.playNum = playNum;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public String getForward() {
		return forward;
	}

	public void setForward(String forward) {
		this.forward = forward;
	}

	/**
	 * @return the href
	 */
	public String getHref() {
		return href;
	}

	/**
	 * @param href
	 *            the href to set
	 */
	public void setHref(String href) {
		this.href = href;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return Id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		Id = id;
	}

	/**
	 * @return the create_time
	 */
	public String getCreate_time() {
		return create_time;
	}

	/**
	 * @param create_time
	 *            the create_time to set
	 */
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}

	/**
	 * @return the focusOntype
	 */
	public String getFocusOntype() {
		return focusOntype;
	}

	/**
	 * @param focusOntype
	 *            the focusOntype to set
	 */
	public void setFocusOntype(String focusOntype) {
		this.focusOntype = focusOntype;
	}

	/**
	 * @return the stype
	 */
	public String getStype() {
		return stype;
	}

	/**
	 * @param stype
	 *            the stype to set
	 */
	public void setStype(String stype) {
		this.stype = stype;
	}

	public long getAlbumId() {
		return albumId;
	}

	public void setAlbumId(long albumId) {
		this.albumId = albumId;
	}

	public String getAlbumName() {
		return albumName;
	}

	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}

	public boolean isTop() {
		return isTop;
	}

	public void setTop(boolean isTop) {
		this.isTop = isTop;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	public String getSourceId() {
		return sourceId;
	}

	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}

	public String getVirtualAddress() {
		return virtualAddress;
	}

	public void setVirtualAddress(String virtualAddress) {
		this.virtualAddress = virtualAddress;
	}

	public String getRecommendTitle() {
		return recommendTitle;
	}

	public void setRecommendTitle(String recommendTitle) {
		this.recommendTitle = recommendTitle;
	}

	public String getRecommendDetail() {
		return recommendDetail;
	}

	public void setRecommendDetail(String recommendDetail) {
		this.recommendDetail = recommendDetail;
	}
	
	public String getRecommendImageUrl() {
		return recommendImageUrl;
	}

	public void setRecommendImageUrl(String recommendImageUrl) {
		this.recommendImageUrl = recommendImageUrl;
	}
	
	public boolean isHot() {
		return isHot;
	}

	public void setHot(boolean isHot) {
		this.isHot = isHot;
	}
}
